<%@ page contentType="text/html; charset=utf-8"%>
<html>
<head>
<script type="text/javascript" src="test/sea.js"></script>
</head>
<body>duang~
</body>
<script type="text/javascript">
	seajs.config({
		alias : {
			hprose : './hprose/hprose-html5.js'
		}
	});
	console.info('ok1');
	//缺省异步的
	seajs.use('hprose', function(hprose) {
		var client = new hprose.HttpClient(
				"http://localhost:8080/rosebus/Hello", [ "sayHello" ]);
		client.sayHello("World!", function(result) {
			console.log(result);
		}, function(name, err) {
			console.error(name);
			console.error(err);
		});
	});
	console.info('ok2');
</script>
</html>